home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group94a.txt
/
000088_icon-group-sender _Wed Apr 20 00:10:16 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-08-19
|
970b
Received: by cheltenham.cs.arizona.edu; Wed, 20 Apr 1994 08:31:17 MST
Via: uk.ac.edinburgh.festival; Wed, 20 Apr 1994 08:09:49 +0100
Date: 20 Apr 94 08:09:43 BST
From: R J Hare <rjhare@festival.ed.ac.uk>
Subject: Random numbers
To: icon-group@cs.arizona.edu
Organisation: Edinburgh University Computing Service
Message-Id: <9404200809.aa18437@uk.ac.ed.festival>
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
Thank you all for responding to my query about 'strange' behaviour by the
random operator. I had always assumed that if a value was 'intrinsically'
numeric, it e was forced to the relevant type. I now see I was mistaken -
another valuable lesson.
For what it's worth, the value for range was set like this:
x:=arglist[1]|50
where arglist is the run-time argument list given to the program. If the
argument list is not given, the value defaults to 50 and as 50 *is* an
integer, and all is well...
Thanks again.
Roger Hare